package com.mystudy.concurrent.singleton;

/**
 * TODO: 懒加载
 *
 * @author acy
 * @since 2019/05/16 13:48
 */
public class SingletonObjectTwo {
	private SingletonObjectTwo() {
	}

	private static class InstanceHolder{
		private final static SingletonObjectTwo instance=new SingletonObjectTwo();
	}

	public static SingletonObjectTwo getInstance(){
		return InstanceHolder.instance;
	}
}
